<!-- 重定向方式实现标签页刷新--第一种实现方式 -->
<script lang="ts" setup>
const route = useRoute()
const router = useRouter()
const params = route.params

if (params.path)
  router.replace(params.path as string)
else router.replace('/')
</script>

<template>
  <div />
</template>
